import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login.vue'
import Main from '@/views/Main.vue'

//聂浩酒店管理
import HotelInformation from '@/views/NH/HotelInformation.vue'
import hotelseller from '@/views/NH/hotelseller.vue'

//董怡敏
import HotelRoom from '@/views/DYM/HotelRoom.vue'
import HotelRoomMoney from '@/views/DYM/HotelRoomMoney.vue'
import HotelRoomNum from '@/views/DYM/HotelRoomNum.vue'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'Login',
    component: Login
  }, {
    path: '/HotelInformation',
    name: 'HotelInformation',
    component: HotelInformation
  }, {
    path: '/Main',
    name: 'Main',
    component: Main,
    //嵌套路由
    children: [{
      path: '/hotelseller',
      name: 'hotelseller',
      component: hotelseller
    }, {
      path: '/HotelRoom',
      name: 'HotelRoom',
      component: HotelRoom
    }, {
      path: '/HotelRoomMoney',
      name: 'HotelRoomMoney',
      component: HotelRoomMoney
    }, {
      path: '/HotelRoomNum',
      name: 'HotelRoomNum',
      component: HotelRoomNum
    }]
  }]
})
